Class TurretSpawnPoint extends Triggers;

var() bool bTriggerOnceOnly,bEvilTurret,bInvulnerableTurret,bNeverKillTurret;
var() int TurretHealth,HitDamage;
var() class<USCMTurret> TurretClass;

event Trigger( Actor Other, Pawn EventInstigator )
{
	local USCMTurret T;

	T = Spawn(TurretClass);
	if( T!=None )
	{
		T.bNoAutoDestruct = bNeverKillTurret;
		T.bEvilTurret = bEvilTurret;
		T.bHasGodMode = bInvulnerableTurret;
		T.HitDamages = HitDamage;
		T.TurretHealth = TurretHealth;
		T.Health = TurretHealth;
	}
	if( bTriggerOnceOnly )
		Destroy();
}

defaultproperties
{
     bEvilTurret=True
     bInvulnerableTurret=True
     TurretHealth=400
     hitdamage=5
     TurretClass=Class'AliensKFWeapons.USCMTurretBad'
     DrawType=DT_Mesh
     Mesh=SkeletalMesh'AliensKFWeapons_A.turret_mesh'
     Skins(0)=Texture'AliensKFWeapons_T.Weapons.sentry_base_col'
     Skins(1)=Texture'AliensKFWeapons_T.weapons.sentry_gun_col'
     bUnlit=True
     CollisionRadius=23.000000
     CollisionHeight=28.000000
     bCollideActors=False
}
